<?php
require_once ('BaseController.php');
class IndexController extends BaseController
{
    public function init ()
    {
        /* Initialize action controller here */
    }
    public function indexAction ()
    {
        $this->view;
        $this->view->headTitle('Title');
        $this->view->headTitle('Title New');
        $this->view->headTitle('Another');
        $defaultNamespace = new Zend_Session_Namespace('Default');
        if (isset($defaultNamespace->numberOfPageRequests)) {
            // this will increment for each page load.
            $defaultNamespace->numberOfPageRequests ++;
        } else {
            $defaultNamespace->numberOfPageRequests = 1; // first time
        }
        echo "Page requests this session: ", $defaultNamespace->numberOfPageRequests;
        $boot=$this->getInvokeArg('bootstrap');
        $userAgent=$boot->getResource('useragent');
      echo $userAgent;  
    }
}

